#pragma once
#include "ChangePage.h"
#include "Page.h"

enum class State
{
	Runing,
	Closing,
};

class PageShower :public std::enable_shared_from_this<PageShower>, public ChangePage {
private:
	State state{ State::Runing };
public:
	PageShower();
	void show();
	void choose();
	void init();
	State getState();
	void setState(State newState);

	// 通过 ChangePage 继承
	virtual void setPage(std::unique_ptr<Page> newPage) override;
	virtual std::unique_ptr<Page> getPage() override;
};

